main() {
  //1. 算数运算符
  int a = 10;
  int b = 20;
  print(a + b);
  print(a - b);
  print(a * b);
  print(a / b);
  print(a % b);
  print(a ~/ b);
  print(a == b);
  print(a != b);
  print(a > b);
  print(a < b);
  //2. 赋值运算符
  int c = 10;
  c += 10;
  print(c);
  c -= 10;
  print(c);
  c *= 10;
  print(c);
  c ~/= 10;
  print(c);
  c %= 10;
  print(c);
  c ~/= 10;
  print(c);
  //3. 比较运算符
  print(a == b);
  print(a != b);
  print(a > b);
  print(a < b);
  print(a >= b);
  print(a <= b);
  //4. 逻辑运算符（不支持短路运算）
  bool isStudent = true;
  bool isTeacher = false;
  print(isStudent && isTeacher);
  print(isStudent || isTeacher);
  print(!isStudent);
  print(!isTeacher);
  //5. 位运算符
  print(a & b);
  print(a | b);
  print(a ^ b);
  print(a << b);
  print(a >> b);
  print(a >>> b);
  print(a ^ b);
  print(a | b);
  print(a & b);
  print(a | b);
  //6. 三元表达式
  int age = 18;
  String result = age >= 18 ? "成年" : "未成年";
  print(result);
}
